'use strict'

class selfmessage{
    constructor(){
        this.param ='/'
    }

    async get(c){
        let a = c.service.fun;
        
        c.setHeader('content-type', 'text/html; charset=utf-8');

        let {user_id} = c.query;
        let data = await a.sel('user_list',{'user_id':`${user_id}`},['user_self'],c.service.pool);
        c.send({
            type:'string',
            data:data.rows[0].user_self

        });
    }
}

module.exports = selfmessage
